package com.stylefeng.guns;

import com.stylefeng.guns.modular.huamao.model.Ads;
import com.stylefeng.guns.modular.huamao.util.CacheUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class Rtest {
    @Autowired
    CacheUtil cacheUtil;

    @Test
    public void dd() {
//        Ads ads = new Ads();
//        ads.setAdClickNum(1);
//        cacheUtil.set("su8", ads);
//
        Object su4 = cacheUtil.get("su8");
        Ads su41 = (Ads) su4;
        System.out.println(su41.getAdClickNum());
    }
}
